package com.fosu.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
import java.util.List;

/**
 * @ClassName Feedback
 * @Description 反馈意见类
 * @Author 夜天冥
 * @Date 2020/11/14 19:40
 * @Version 1.0
 */
@Data
@Component
public class Feedback {
    //反馈意见id
    private int feedbackId;
    //用户id
    private int userId;
    //反馈标题
    private String feedbackTitle;
    //反馈详情
    private String feedbackDetail;
    //联系电话
    private String phone;
    //上传时间
    private Timestamp date;
    //反馈图片
    private List<String> feedbackImgs;

    /**
     * 在查询时规范化时间戳格式
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Timestamp getDate() {
        return date;
    }

}
